﻿@using Controllers
@{
    var func=new MyFunc();
}
<script type="text/javascript" src="@ViewBag.model.skin/js/html5zoo.js"></script>
<script type="text/javascript" src="@ViewBag.model.skin/js/lovelygallery.js"></script>
	<div class="logo">
		<div class="w1200 rel">
			<img src="@ViewBag.model.skin/images/logo.png" class="logo_l" />
			<div style="position: absolute; right: 0px; top: 0px;width: 662px;height: 227px; overflow: hidden;">
				<div id="html5zoo-1">
					<ul class="html5zoo-slides" style="display: none;">
						<li>
							<img src="@ViewBag.model.skin/images/top_banner_1.png" />
						</li>
						<li>
							<img src="@ViewBag.model.skin/images/top_banner_2.png" />
						</li>
						<li>
							<img src="@ViewBag.model.skin/images/top_banner_3.png" />
						</li>
						<li>
							<img src="@ViewBag.model.skin/images/top_banner_4.png" />
						</li>
						<li>
							<img src="@ViewBag.model.skin/images/top_banner_5.png" />
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div class="nav">
		<ul class="cl w1200">
		@{
			var nav = func.GetNav();//获取导航
		}
		@for (int i = 0; i < nav.Count; i++)
		{ 
		<li><a href="@nav[i].url" title="@nav[i].title">@nav[i].title</a>
		@{var znav=func.GetNav(classid:nav[i].ID);}
		@if(znav.Count>0){
		<ul>
			@for(int j=0;j<znav.Count;j++){
			<li><a href="@znav[j].url" title="@znav[j].title">@znav[j].title</a></li>
			}
		</ul>
		}
		</li>   
		}  
		</ul>
	</div>
		<div id="main_1" class="w1200">
		<div style="position:absolute;left:0;top:10px;height:30px;overflow:hidden;">
		<iframe id="fancybox-frame" name="fancybox-frame1566032942264" frameborder="0" scrolling="no" hspace="0"  src="http://i.tianqi.com/index.php?c=code&a=getcode&id=34&h=25&w=280"></iframe></div>
		<div id="search_1">
			<form>
				<input type="text" name="key" id="key" placeholder="请输入关键词" value="" class="input_1"/>
				<input type="button" value="搜索" class="btn_1" />
			</form>
		</div>
	</div>
			<script type="text/javascript">
				$(function(){
					$("#search_1 .btn_1").click(function(){
						window.location.href="/search/"+$("#key").val();
					})
				})
			</script>